<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: liao
  Date: 2016/8/31
  Time: 17:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/top.jsp"%>
<script src="<%=ctxpath%>/static/teacher/js/classDetail.js"></script>
<link href="<%=ctxpath%>/static/v3/bk.css?v=1.0.1" rel="stylesheet"/>
<link href="<%=ctxpath%>/static/v3/font-awesome.css" rel="stylesheet"/>
<script src="<%=ctxpath%>/static/v3/jquery.floatThead.min.js"></script>
<script src="<%=ctxpath%>/static/v3/assets/js/jPages.js"></script>
<style>
    .span{
        margin-left: 35%;
        font-size:large;
        font-family: 微软雅黑;
    }
    #div{
        margin-left: 5%;
    }
    .king-btn-demo{
        margin-left: 87%;
    }
</style>
<%
    List<StudentBean> list = (List<StudentBean>) request.getAttribute("list");

%>
<div class="panel panel-default table7_demo">
    <div class="panel-heading">
        <span style="font-size: 16px;font-weight:bolder;">班级学生列表</span>
    </div>
        <%if(list.isEmpty()){%>
            <div id="div"><img src="<%=ctxpath%>/media/img/teacher/7.png" class="img"/>
                <img src="<%=ctxpath%>/media/img/teacher/8.png" class="img"/></div>
        <%}else{%>
        <div class="wrapper" id="table_demo3">
        <table class="table table-hover mb0">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>学号</th>
                    <th>姓名</th>
                    <th>班级</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <%for(StudentBean s:list){
                if(s.getStudent_number()==null){
                    s.setStudent_number("无");
                }
            %>
                <tr id="tr<%=s.getStudent_id()%>">
                    <td><%=s.getStudent_id()%></td>
                    <td><%=s.getStudent_number()%></td>
                    <td><%=s.getStudent_name()%></td>
                    <td><%=s.getaClass().getClass_name()%></td>
                    <%if(s.getStudent_remarks()==null){%>
                        <td>无</td>
                    <%}else{%>
                        <td><%=s.getStudent_remarks()%></td>
                    <%}%>
                    <td><a href="#" class="remove" name="remove">[移除本班]</a>
                        <input type="hidden" id="hidden<%=s.getStudent_id()%>" value="<%=s.getaClass().getClass_id()%>">
                    <a href="<%=ctxpath%>/TeacherController/getStudentInformation.wm?student_id=<%=s.getStudent_id()%>&teacher_id=<%=tea.getTeacher_id()%>" id="detail">[详细信息]</a></td>
                </tr>
            <%}%>
            </tbody>
        </table>
        </div>
        <%}%>
    <button class="king-btn-demo king-btn king-round king-success" title="保存">返回</button>
    </div>
<script type="text/javascript">
    //锁定头部表格-1
    $(document).ready(function($) {
        //table9_demo1_js_start
        //锁定头部表格-1

        //table9_demo1_js_end
    });
</script>
<%@include file="../inc/bottom.jsp"%>
